package com.gx.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gx.mapper.TbFlowMsgMapper;
import com.gx.model.pojo.TbFlowMsg;
import com.gx.service.TbFlowMsgService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.List;

/**
 * @ClassName FlowMessageServiceImpl
 * @Author lpj
 * @Date 2022/12/22 16:21
 **/
@Service
@Slf4j
public class TbFlowMsgServiceImpl extends ServiceImpl<TbFlowMsgMapper, TbFlowMsg> implements TbFlowMsgService {
    @Override
    public void sendUserMsg(List<String> userIds, String message, String type) {
        log.info("消息接收人 :{},消息内容: {},消息类型: {}", userIds, message, type);
    }

    @Override
    public void sendGroupUserMsg(Collection<String> userIds, Collection<String> groupIds, String message, String type) {
        log.info("消息接收人 :{} ,消息接收组:{} ,消息内容: {} ,消息类型: {} ", userIds, groupIds, message, type);
    }
}

